amba_pl011: Don't use DT aliases for numbering
authorPhil Elwell <phil@raspberrypi.org>
Tue, 23 Feb 2016 17:26:48 +0000 (17:26 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:45:05 +0000 (15:45 +0100)
commit5121ebea3251799f923ab249e7016a027ab3b6c9
treea47fff07be2dc463781a3ced5c17927faa0d6d42
parent34a10c4da9ec53b47d4ec867f521e6e71c7c2e66
amba_pl011: Don't use DT aliases for numbering

The pl011 driver looks for DT aliases of the form "serial<n>",
and if found uses <n> as the device ID. This can cause
/dev/ttyAMA0 to become /dev/ttyAMA1, which is confusing if the
other serial port is provided by the 8250 driver which doesn't
use the same logic.
drivers/tty/serial/amba-pl011.c